From 8259cb8841ae8e344089b552622a74ecc1116845 Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Thu, 22 Sep 2005 17:50:29 +0100 Subject: [PATCH] Added diagnostic message when RuntimeError is raised inside XenStore.exists. This is one of the first things to be used when xenstored starts up, so a corrupted filesystem may manifest itself here. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/xenstore/xsnode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/xenstore/xsnode.py b/tools/python/xen/xend/xenstore/xsnode.py index 469ef5f536..817cff757a 100644 --- a/tools/python/xen/xend/xenstore/xsnode.py +++ b/tools/python/xen/xend/xenstore/xsnode.py @@ -244,7 +244,9 @@ class XenStore: if ex.args[0] == errno.ENOENT: return False else: - raise + raise RuntimeError(ex.args[0], + ex.args[1] + + (', in exists(%s)' % (str(path)))) def mkdirs(self, path): if self.exists(path): -- 2.30.2